<template>
    <li @click="handleClick">
        {{ mydata }}
    </li>
</template>

<script>
export default {
    props: ["mydata"],
    inject: ["navbarTitle", "app"],
    methods: {
        handleClick() {
            this.app.navbarTitle = this.mydata
        }
    }
}
</script>